﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AP.Framework.Infrastructure.Repositories.IRepositories;
using AP.Framework.Infrastructure.Entities;
using ApCMS.Models;

namespace ApCMS.Controllers
{
    public class ContactController : Controller
    {
        IContact _contact;
        public ContactController(IContact contact)
        {
            _contact = contact;
        }
        public ActionResult Index()
        {
            ContactModels model = new ContactModels();
            model.Contact = _contact.GetAll().FirstOrDefault();
            return View(model);
        }

    }
}
